package com.ler.yrmall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ler.yrmall.product.entity.BrandEntity;
import com.ler.yrmall.product.entity.CategoryBrandRelationEntity;
import com.ler.yrmall.product.vo.CategoryBrandRelationVO;

import java.util.List;

/**
 * @author Leron
 */
public interface CategoryBrandRelationService extends IService<CategoryBrandRelationEntity> {

    /**
     * 获取品牌关联的分类
     * @param request
     * @return
     */
    List<CategoryBrandRelationVO> listByBrandId(CategoryBrandRelationEntity request);

    /**
     * 保存关联
     * @param categoryBrandRelation
     */
    void saveRelation(CategoryBrandRelationEntity categoryBrandRelation);

    /**
     * 根据分类查询品牌
     * @param categoryId
     * @return
     */
    List<BrandEntity> getBrandByCategoryId(String categoryId);
}

